<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>手机认证</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="../../css/sm.min.css" />
    <link rel="stylesheet" type="text/css" href="../../css/base.css" />
	<link rel="stylesheet" type="text/css" href="../../css/register.css" />
</head>

<body>
    <div class="page page-group">
        <div class="content">
			<div class="registerBox">
                <div class="registerLi">
                    <div class="phonebox">
                        <span class="width30">手机号码</span>
                        <input type="tel" placeholder="请填写手机号" class="width70">
                    </div>
                    <div class="getcode">
                        <button class="obtain generate_code font14" id="faCode" onclick="time()">获取验证码</button>
                    </div>
                </div>
                <div class="registerLi borderNone">
                    <span class="width21" style="line-height: 3rem;">验证码</span>
                    <input type="tel" placeholder="请输入验证码" class="width79">
                </div>         
            </div>
            <p class="top10 left20">
                <span class="colred">*</span>
                <span class="colgrey">认证代表同意</span>
                <a href="#" class="colgreen">《使用条款和保密政策》</a>
            </p>
            <div class="nextStep">下一步</div>
        </div>
    </div>
    <script>
        var wait=60;
        function time(){
            var code = document.getElementById('faCode');
            if (wait==0) {
                code.removeAttribute("disabled");
                code.innerHTML="输入验证码";
                wait=60;
            }else{
                code.setAttribute("disabled", 'true');
                code.innerHTML="重新发送("+wait+")";
                wait--;
                setTimeout(function(){
                    time()
                },1000)
            }
        }
    </script>
</body>
</html>